package com.tony.spring.mode.adapter;

/**
 * 业务服务类
 * @author Tony
 *
 */
public class DemoServiceImpl implements DemoService{
	
	private DemoServiceAdapter demoServiceAdapter;
	

	@Override
	public void demo(String canFlay) throws Exception {
		if("code".equals(canFlay)){
			System.out.println("我有写程序的能力");		
//		} else if("fly".equals(canFlay)){
//			demoServiceAdapter = new DemoServiceAdapter();
//			demoServiceAdapter.demo(canFlay);
		}else {
			throw new Exception("能力不够");
		}
		
		
	}
	

}
